<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" type="image/x-icon" href="../favicon.ico"/>
    <title>下载 jetbrick-template</title>

    <link href="../assets/css/application.min.css" rel="stylesheet" type="text/css"/>

    <!--[if lt IE 9]><script src="../assets/js/html5shiv.js"></script><![endif]-->
    <script type="text/javascript" src="../assets/js/application.min.js"></script>
</head>

<body>
<a href="https://github.com/subchen/jetbrick-template/" target="_blank">
    <img src="../assets/images/forkme_right_orange.png" alt="Fork me on GitHub" class="fork-me-on-github">
</a>

<div class="jb-topbar">
    <div class="container">
        <a href="http://subchen.github.io/"><img src="../assets/images/logo-mini.png"/></a>
        <!--
        <ul class="menubar">
            <li><a href="">commons</a></li>
            <li><a href="">webmvc</a></li>
            <li><a href="">template</a></li>
            <li><a href="">orm</a></li>
            <li><a href="">widget</a></li>
            <li><a href="">javadoc-chm</a></li>
        </ul>
        -->
        <div class="pull-right" style="color:#fff;line-height:40px;font-size:16px;padding-right:20px">QQ 交流圈：310491655</div>
    </div>
</div>

<div class="jb-banner">
    <div class="container">
        <a href="http://subchen.github.io/jetbrick-template/index.html">
            <img src="../assets/images/jetbrick-template-logo.png" class="pull-left" />
        </a>
        <ul class="description">
            <li>1. 全新一代 Java 模板引擎</li>
            <li>2. 具有高性能、高扩展性</li>
            <li>3. 完美替代 JSP, Velocity 等引擎模板</li>
        </ul>
        <a href="download/jetbrick-template-1.2.3.zip" class="download-button">
            <img src="../assets/images/download.png"/>
            <span>jetbrick-template-1.2.3.zip<br/>2014-03-10</span>
        </a>
    </div>
</div>

<div class="container">
    <div class="jb-section">
        <ul class="tabs">
            <li><a href="overview.html">简介</a></li>
            <li><a href="download.html" class="selected">下载</a></li>
            <li><a href="userguide.html">开发指南</a></li>
            <li><a href="config.html">配置指南</a></li>
            <li><a href="syntax.html">语法指南</a></li>
            <li><a href="integrate.html">Web 框架集成</a></li>
            <!--
            <li><a href="example.html">例子</a></li>
            -->
            <li><a href="faq.html">FAQ</a></li>
            <li><a href="about.html">关于</a></li>
        </ul>
    </div>
</div>

<div class="container">
    <div class="announcement">
        <a href="download.html#version">2014-03-10：jetbrick-template-1.2.3 正式版已发布，欢迎下载。</a>
    </div>
</div>

<div class="container">

    <style type="text/css">
        .affix-top {
          float: left;
          margin-top: 20px;
        }
        .affix {
          position: left;
          float: right;
          top: 20px;
          margin-top: 0 !important;
          z-index: 100;
        }
        .jb-nav-list-container {
            width: 220px !important;
            margin-top: 20px;
        }
        .markdown {
          margin-left: 260px; 
        }
    </style>
    <div class="jb-nav-list-container" data-spy="affix" data-offset-top="230">
        <ul class="jb-nav-list">
            <li><a href="#x1815514056">1 开源许可 License</a></li>
            <li><a href="#x769954348">2 第三方依赖包 Dependences</a></li>
            <li><a href="#x271151717">3 Maven 依赖 POM.xml</a></li>
            <li><a href="#x2081807827">4 从源码安装 Sources</a></li>
            <li><a href="#x1214533757">5 范例下载 Samples</a></li>
            <li><a href="#x173772310">6 离线文档下载 Documents</a></li>
            <li><a href="#x1304924747">7 最新版本 Latest Version</a></li>
            <li><a href="#x887846512">8 更新历史 Release Notes</a></li>
        </ul>
    </div>

    <div class="markdown">

<!-- markdown body begin -->

    <h1><a name="x1815514056"></a><span>1 开源许可 License</span></h1>
<p>Copyright 2010-2013 Guoqiang Chen. All rights reserved.<br />Email: <a href="mailto:subchen@gmail.com">subchen@gmail.com</a></p>
<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br />you may not use this file except in compliance with the License.<br />You may obtain a copy of the License at</p>
<p><a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></p>
<p>Unless required by applicable law or agreed to in writing, software<br />distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br />WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br />See the License for the specific language governing permissions and<br />limitations under the License.</p>
<h1><a name="x769954348"></a><span>2 第三方依赖包 Dependences</span></h1> 
<ul> 
 <li><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">JDK 1.6+</a></li> 
 <li><a href="http://www.antlr.org/download.html">ANTLR runtime 4.x</a></li> 
 <li><a href="http://www.slf4j.org/">Slf4j 1.7.x</a></li> 
</ul> 
<blockquote>
 <p><strong>注意</strong>： </p>
 <p>jetbrick-template 需要使用 jdk6+ 里面的 tools.jar 来编译模板生成的 Java 源文件。如果只有 jre6+，那么可以 copy 一个对应的 tools.jar 到 classpath 下面。<br />现在我们也支持 JDT（Eclipse Java Compiler） 编译 java。只需要把 org.eclipse.jdt.core_xxx.xxx.jar (又名 ecj.jar) 加入到 classpath，然后设置 <code>compile.tool = jetbrick.template.compiler.JdtCompiler</code> 即可。</p> 
</blockquote>
<h1><a name="x271151717"></a><span>3 Maven 依赖 POM.xml</span></h1>
<p>已发布到 Maven 中央库： <a href="http://central.maven.org/maven2/com/github/subchen/">http://central.maven.org/maven2/com/github/subchen/</a></p> 
<script type="syntaxhighlighter" class="brush: xml"><![CDATA[
<project>
  <dependencies>
    <dependency>
      <groupId>com.github.subchen</groupId>
      <artifactId>jetbrick-template</artifactId>
      <version>1.2.3</version>
    </dependency>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>antlr4-runtime</artifactId>
      <version>4.1</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.5</version>
    </dependency>
  </dependencies>
<project>
]]></script>
<p>Eclipse Java Compiler.</p> 
<script type="syntaxhighlighter" class="brush: xml"><![CDATA[
<dependency>
    <groupId>org.eclipse.jdt.core.compiler</groupId>
    <artifactId>ecj</artifactId>
    <version>4.3.1</version>
</dependency>
]]></script>
<h1><a name="x2081807827"></a><span>4 从源码安装 Sources</span></h1>
<p>github: <a href="https://github.com/subchen/jetbrick-template">https://github.com/subchen/jetbrick-template</a></p>
<p>编译方法：</p> 
<ol> 
 <li><p>先安装 apache-ant 1.9.x</p> <script type="syntaxhighlighter" class="brush: text"><![CDATA[
wget http://mirrors.cnnic.cn/apache//ant/binaries/apache-ant-1.9.2-bin.zip
]]></script></li> 
 <li><p>设置好 JDK, ANT 环境变量</p> <script type="syntaxhighlighter" class="brush: text"><![CDATA[
set JAVA_HOME=/path/jdk_1.6.x
set ANT_HOME=/path/apache-ant_1.9.x
set PATH=%JAVA_HOME%/bin;%ANT_HOME%/bin;%PATH%
]]></script></li> 
 <li><p>编译</p> <script type="syntaxhighlighter" class="brush: text"><![CDATA[
git clone https://github.com/subchen/jetbrick-template.git
cd jetbrick-template
ant dist
]]></script></li> 
 <li><p>编译后的文件存放在 build 目录中</p> <script type="syntaxhighlighter" class="brush: text"><![CDATA[
jetbrick-template-x.x.x.jar
jetbrick-template-x.x.x.zip
jetbrick-template-x.x.x-all.zip
]]></script></li> 
</ol>
<p><a name="samples"></a></p>
<h1><a name="x1214533757"></a><span>5 范例下载 Samples</span></h1>
<h3><a name="x988598897"></a><span>5.0.1 官方范例：</span></h3> 
<ul> 
 <li><a href="demo/jetx-samples-servlet.zip">jetx-samples-servlet.zip</a></li> 
 <li><a href="demo/jetx-samples-jfinal.zip">jetx-samples-jfinal.zip</a></li> 
 <li><a href="demo/jetx-samples-springmvc.zip">jetx-samples-springmvc.zip</a></li> 
 <li><a href="demo/jetx-samples-struts.zip">jetx-samples-struts.zip</a></li> 
 <li><a href="demo/jetx-samples-jodd.zip">jetx-samples-jodd.zip</a></li> 
</ul>
<p>下载的 zip 包中包含完整的源代码和可直接运行的 war 包。<br />更多代码可以前往： <a href="https://github.com/subchen/jetbrick-template-webmvc-samples/">https://github.com/subchen/jetbrick-template-webmvc-samples/</a></p>
<h3><a name="x396207507"></a><span>5.0.2 网友提供的范例：</span></h3> 
<ul> 
 <li><a href="demo/jetx-samples-nutz-by-howe.zip">jetx-samples-nutz-by-howe.zip</a></li> 
 <li><a href="demo/jetx-samples-springmvc-by-yingzhuo.zip">jetx-samples-springmvc-by-yingzhuo.zip</a></li> 
</ul>
<h3><a name="x1941967230"></a><span>5.0.3 自定义标签 Tags/Methods/Functions：</span></h3> 
<ul> 
 <li><a href="demo/jetbrick-template-extend-1.0.8.zip">jetbrick-template-extend-1.0.8</a></li> 
</ul>
<p>更多信息，前往： <a href="https://github.com/yingzhuo/jetbrick-template-extend">https://github.com/yingzhuo/jetbrick-template-extend</a></p>
<p>感谢网友 应卓 提供相关的实现。</p>
<p><a name="documents"></a></p>
<h1><a name="x173772310"></a><span>6 离线文档下载 Documents</span></h1>
<p><a href="download/jetbrick-template-1.2.2-documents.pdf">jetbrick-template-1.2.2-documents.pdf</a></p>
<p>感谢网友 laughing 提供离线 PDF 文档。</p>
<p><a name="version"></a></p>
<h1><a name="x1304924747"></a><span>7 最新版本 Latest Version</span></h1> 
<ul> 
 <li><a href="download/jetbrick-template-1.2.3.zip">jetbrick-template-1.2.3.zip</a></li> 
 <li><a href="download/jetbrick-template-1.2.3-all.zip">jetbrick-template-1.2.3-all.zip</a></li> 
</ul>
<p>更多历史版本，请看<a href="history.html">这里</a></p>
<h1><a name="x887846512"></a><span>8 更新历史 Release Notes</span></h1>
<p><a name="release_notes_1_2_3"></a><br /><strong>Version 1.2.3 (2014-03-10)</strong></p> 
<ul> 
 <li>[新增] <a href="https://github.com/subchen/jetbrick-template/issues/82">#82 支持自定义的全局变量</a></li> 
 <li>[新增] <a href="https://github.com/subchen/jetbrick-template/issues/83">#83 增加 Eclipse Java Compiler 支持</a></li> 
 <li>[修复] <a href="https://github.com/subchen/jetbrick-template/issues/80">#80 WildFly 8.0.0 autoscan/compile error.</a></li> 
 <li>[修复] <a href="https://github.com/subchen/jetbrick-template/issues/81">#81 resin-3.1.13 compile issue</a></li> 
</ul>

<!-- markdown body end -->

    </div>
</div>

<div class="container">
    <div class="jb-footer">
        Copyright 2010-2014 Guoqiang Chen. All rights reserved.
        <br/>subchen&#64;gmail.com, QQ 交流圈：310491655
    </div>
</div>

<style type="text/css">
#cnzz_stat_icon_1000210720 {
	display: none;
}
</style>
<script type="text/javascript">
var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cspan id='cnzz_stat_icon_1000210720'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1000210720' type='text/javascript'%3E%3C/script%3E"));
</script>



</body>
</html>
